﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmAp.Operator.Interface;
using SmApiLibrary.libs;

namespace SmAp.Operator.OP.Sina
{
     public class OAuth : IOAuth
    {
        #region IOAuth 成员

        public SmApiLibrary.libs.WeiBoType weiboType
        {
            get { return SmApiLibrary.libs.WeiBoType.Sina; }
        }

        public string GetUser(SmApiLibrary.libs.OAuthBase oaubase)
        {
            string url = "http://api.t.sina.com.cn/account/verify_credentials.json";
            string result = oaubase.OAuthWebRequest(Method.GET, url, null, null);
            return result;
        }

        #endregion
    }
}
